package com.hshx.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel("用户基本信息")
public class Users implements Serializable {
    @ApiModelProperty(value = "用户主键", required = true)
    @TableId
    private Integer users_id;
    @ApiModelProperty(value = "姓名", required = true)
    private String username;
    @ApiModelProperty(value = "性别", required = true)
    private Integer gender;
    @ApiModelProperty(value = "密码", required = true)
    private String password;
    @ApiModelProperty(value = "电话号码", required = true)
    private String users_phone;
    @ApiModelProperty(value = "身份证号", required = true)
    private String users_number;
    @ApiModelProperty(value = "邮箱", required = true)
    private String users_mailbox;
    @ApiModelProperty(value = "地址", required = false)
    private String users_address;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "入职日期", required = false)
    private Date users_entryDate;//入职日期
    @ApiModelProperty(value = "用户状态；1为实习期，2为试用期，3为在岗，4为离职，5为辞退，6为合同到期", required = false)
    private Integer users_state;//用户状态；1为实习期，2为试用期，3为在岗，4为离职，5为辞退，6为合同到期
    @ApiModelProperty(value = "用户角色表外键", required = false)
    private Integer users_role;//用户角色表外键
    @ApiModelProperty(value = "关联部门表的外键", required = false)
    private Integer users_dept;//关联部门表的外键
    @ApiModelProperty(value = "关联职位表的外键", required = false)
    private Integer users_position;//关联职位表的外键
    @ApiModelProperty(value = "关联薪资标准表", required = false)
    private Integer users_salary;//关联薪资标准表


}
